<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style></style>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <script>
        function show(json) {
            alert(json.s)
            console.log(json.s)
        }
        window.onload = function () {
            let os = document.getElementById('txt');
            let s1 = document.getElementById('s1');
            os.oninput = function () {
	            s1.src = `https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd=${os.value}&cb=show`
            }
        }
    </script>
    <script id="s1"></script>
</head>
<body>
<input type="text" id="txt">
</body>
<script>

</script>
</html>